import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Date: 2024-01-31
 * Time:10:21
 */
public class Test {
    public static void main(String[] args) {
/*
        int[] array = {3,2,2,3};
        Solution.removeElement(array,3);
        System.out.println(Arrays.toString(array));
*/
        MySingleList mySingleList = new MySingleList();

        mySingleList.addFirst(1);
        mySingleList.addFirst(2);
        mySingleList.addFirst(3);
        mySingleList.addFirst(4);
        mySingleList.addFirst(2);
        mySingleList.addFirst(3);
        mySingleList.addFirst(4);
        mySingleList.addFirst(2);
//        mySingleList.addIndex(2,5);
        mySingleList.removeAllKey(2);
        //mySingleList.addFirst(3);
        mySingleList.display();
    }
}
